Skip to content

fix -Wpedantic warnings - #1532

Merged
lukaszstolarczuk merged 1 commit into
oneapi-src:mainfrom
bratpiorka:rrudnick_fix_warnings
Oct 2, 2025
Merged

fix -Wpedantic warnings#1532
lukaszstolarczuk merged 1 commit into
oneapi-src:mainfrom
bratpiorka:rrudnick_fix_warnings

Conversation

@bratpiorka

Copy link
Copy Markdown
Contributor

fix -Wpedantic warnings

	In file included from /home/rrudnick/llvm/build_sycl/_deps/unified-memory-framework-src/src/memory_pool.c:19:
	/home/rrudnick/llvm/build_sycl/_deps/unified-memory-framework-src/src/ctl/ctl_internal.h:168:43: warning: initialization of a flexible array member [-Wpedantic]
	  168 |         sizeof(void *), CTL_ARG_TYPE_PTR, { {0, 0, NULL}, CTL_ARG_PARSER_END } \
	      |                                           ^
	      |                                                       ^~~~~~~~~~~

and

	[38/1059] Building C object _deps/unified-memory-framework-build/src/CMakeFiles/umf.dir/pool/pool_disjoint.c.o
	/home/rrudnick/llvm/build_sycl/_deps/unified-memory-framework-src/src/pool/pool_disjoint.c:30:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
	   30 | static char *DEFAULT_NAME = "disjoint";

@bratpiorka
bratpiorka requested a review from lplewa October 2, 2025 09:02
@bratpiorka
bratpiorka marked this pull request as ready for review October 2, 2025 09:03
@bratpiorka
bratpiorka requested a review from a team as a code owner October 2, 2025 09:03
Comment thread src/ctl/ctl_internal.h

@lukaszstolarczuk lukaszstolarczuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukaszstolarczuk
lukaszstolarczuk merged commit 04b02ca into oneapi-src:main Oct 2, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants